QuestionCard

fun QuestionCard(modifier: Modifier = Modifier, num: Int, question: String, selectedOption: Int, onSelect: (Int) -> Unit)

Composable that displays a question card for a specific question, allowing the user to select an answer.

Parameters

modifier

Modifier for customizations to the layout.

num

The index of the current question.

question

The text of the question.

selectedOption

The current selected option for the question.

onSelect

Function to handle selecting an answer.